#ifndef	_RESOURCE_META_HEADER_
#define	_RESOURCE_META_HEADER_


#include <string>
#include <log4cxx/logger.h>
#include <log4cxx/basicconfigurator.h>
#include <log4cxx/propertyconfigurator.h>
#include <log4cxx/helpers/exception.h>

using namespace log4cxx;
using namespace log4cxx::helpers;

using namespace std;


class resources_info
{
	protected:
		string leaf;
		string folder;
		int id;
		long size;
		long create_time;
		long access_time;
		long modify_time;
		
		long record_create_time;
		long record_update_time;
		int type;
		static LoggerPtr logger;

	public:
		void setLeaf(string leaf);
		void setFolder(string folder);	
		void setId(int id);
		
		resources_info();
				
		static 	bool find_resources_info(resources_info *rip,string folder, string leaf);				
		static 	void insert_resources_info(resources_info *rip);
};


class folder_info: public resources_info
{
	public :
		static 	bool find_resources_info(folder_info *rip,string folder);				
		static 	void insert_resources_info(folder_info *folder);
	
};

#endif
